package com.example.doubledb.service;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.doubledb.entity.SysMenu;
import com.example.doubledb.repository.SysMenuMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
@DS("ry")
public class SysMenuService {

    private final SysMenuMapper menuMapper;

    public List<SysMenu> selectList(SysMenu sysMenu) {
        return menuMapper.selectList(new QueryWrapper<>(sysMenu));
    }
}
